# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-niaclass
_pkgorig=niaclass
pkgver=0.1.2
pkgrel=1
pkgdesc="Framework for solving classification tasks using nature-inspired algorithms."
url="https://github.com/lukapecnik/NiaClass"
arch="noarch !s390x !riscv64" # py3-scikit-learn, py3-niapy
license="MIT"
depends="python3 py3-numpy py3-pandas py3-niapy py3-scikit-learn"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/n/niaclass/niaclass-$pkgver.tar.gz
do-not-package-tests.patch"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
6ffdc11e2a26dc6729ba1a955b9d720c7505b08e80839d7a144483e320c1539770955c7e9b319009101e79e02dc9e7d351bb98d0487079f8571c0298262b55f6  py3-niaclass-0.1.2.tar.gz
309cb6f91c67b449baf2b95f15cadf0a169b01d2d37993f7095dbf600a0011d3b89fe4cd1893bdcb2b02a9359b5fa1fa9849bdae4dc953e15dfe40add1b4c664  do-not-package-tests.patch
"
